package com.springboot.merlin.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author Merlin
 * @Title: UserProperties
 * @ProjectName springboot-learning
 * @Description:
 * @date 2018/8/2815:13
 */
//@Data 为lombok注解 提供getter\setter\toString等方法
@Data
@Component
@ConfigurationProperties(prefix = "my")
public class UserProperties {
    private String name;
    private String gender;

}
